package com.mall.manager.FirstGardenStatistics.controller;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.util.WebUtils;

import com.mall.manager.FirstGardenStatistics.service.FirstGardenStatisticsService;
/**
 * @全国园所首次登录统计
 * @author liugb
 * @Date 2016 7 13
 */
@Controller
@RequestMapping("/manager")
public class FirstGardenStatisticsController {
	Logger logger = LoggerFactory.getLogger(FirstGardenStatisticsController.class);
	@Resource
	FirstGardenStatisticsService firstGardenStatisticsService;
    /**
     * @全国园所首次登录统计
     * @param request
     * @return
     */
	@RequestMapping(value = "/manager_firstGarden_list")
	@ResponseBody
	public String manager_firstGarden_list(HttpServletRequest request) {
		Map<String, Object> paraMap1 = WebUtils.getParametersStartingWith(request, "");
		List<Map<String, Object>> rs = firstGardenStatisticsService.manager_firstGarden_list(paraMap1);
		JSONObject jsonObject = JSONObject.fromObject(rs);
		return String.valueOf(jsonObject);
	}

}
